
import GUI from "lil-gui";




export async function main(dom: HTMLDivElement, _menu: GUI) {
  navigator.geolocation.getCurrentPosition(function (position) {
    dom.innerText = `${position.coords.longitude} - ${position.coords.latitude}`
  }, (e) => {

    dom.innerText = JSON.stringify(e)
    dom.style.paddingTop = '300px'
  }, {
    timeout: 10000
  })


  return () => {
    dom.style.paddingTop = ''
  }
}